package com.handle.system.web.controller;

import com.handle.common.core.result.JsonResult;
import com.handle.system.api.request.dept.DeptQueryParam;
import com.handle.system.api.service.ISysDeptService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhangqing
 * @description 部门控制层
 * @date 2021/4/26 8:00 下午
 */
@RestController
@RequestMapping("/dept")
@AllArgsConstructor
@Api(tags = "SysDeptController", value = "部门控制层")
public class SysDeptController {

    private final ISysDeptService sysDeptService;

    @ApiOperation("获取所有部门信息")
    @PostMapping("/findDeptList")
    public JsonResult findDeptList(@RequestBody DeptQueryParam deptQueryParam){
        return sysDeptService.findDeptList(deptQueryParam);
    }
}
